//
// Created by hentai on 24-12-10.
//

#include "cl/hentai_enum.h"

#include <stdio.h>

void hentai_enum() {
    printf("\033[1;31m%d", 1);
    printf("\033[1;31m%d", 1);
    printf("\033[1;31m%d", 1);
    // int c;
    enum spectrum color = red;
    // if (color == red) {
    //     printf("\033[1;31m");
    // }
    for (color = red; color <= violet; color++) {
        printf("\033[1;31m%d", 1);
    }

    printf("\n------------------\n");

    int (*pfunc)(const int *, const int *) = add;
    const int a = 1, b = 2;
    const int c =  pfunc(&a, &b);
    printf("%d\n", c);


}

int add(const int *a, const int *b) {
    return *a + *b;
}

int subtract(const int *a, const int *b) {
    return *a - *b;
}
